Dynomotion

Group: DynoMotion Message: 7219 From: deanw1a Date: 4/10/2013
Subject: KFlop only - Encoder Channel mapping
KFlop only - Encoder Channel mapping:

Config / Axis Modes / input = Encoder:

After much time in thought, I believe that the Input Channel 0 settings (InputChan0 in CHAN) settings 0..7 specify the set of KFlop input pins to use for Encoder Phase A & B inputs. These 8 sets of pins are documented as "Axis 0 Encoder…Axis 7 Encoder" in the KFlop Connectors help. However, it seems that you can assign them to any axis/axis channel you want by setting the axis channel's InputChan0. The descriptions might be clearer as "Encoder 0" or "Encoder Channel 0" instead of "Axis". This may seem trivial. But, it has cost me several hours of research.
Am I wrong about this? If not, can a note be made for a future document revision so others can avoid this same confusion?

The sample programs add to my confusion by setting InputChan1 for InputMode=Encoder even when only one input is used. Here I am… trying to figure out what the "Axis Modes"/"input" = Encoder, "Input Channels"/0 settings mean… and I see KFlop only samples setting ch0->InputChan0=0,ch0->InputChan1=1,ch1->InputChan0=1,ch1->InputChan1=2… I believe that these InputChan1=n settings are useless. I do not see any examples that set it to -1. I would think that would be the setting for unused int values.

Is it OK to set unused int values to -1?

Here is what I have concluded:

KFlop without added cards:
Config / Axis Modes / input dropdown (ch?->InputMode) = Encoder

Input Channels / 0 (ch?->InputChan0) =
0 = IO0 & IO1 = JP7 7 & 8
1 = IO2 & IO3 = JP7 9 & 10
2 = IO4 & IO5 = JP7 11 & 12
3 = IO6 & IO7 = JP7 13 & 14
4 = IO36 & IO37 = JP5 1 & 2
5 = IO38 & IO39 = JP5 3 & 4
6 = IO40 & IO41 = JP5 5 & 6
7 = IO42 & IO43 = JP5 7 & 8

So, if I want to use the Encoder IO pin set JP5 pins 5&6 to connect an encoder's phase A and B, I would define a Config / Channel to have Axis Mode Input = Encoder and Input Channel 0 = 6

Is this correct?

I see that 8..15 are used for two SnapAmps (4 encoder ins on each).
Are Input Channel 0 = 8..15 used for anything when using only a KFlop board?

Thanks.
Group: DynoMotion Message: 7221 From: Tom Kerekes Date: 4/10/2013
Subject: Re: KFlop only - Encoder Channel mapping
Hi deanw1a,

Using the word Axis is confusing.  It has been changed.  See:


Regarding the second input channel:  You are also correct that in Encoder mode the 2nd input is not used.  Most Users use the KMotion Screens to set configuration.  In that case we gray out the 2nd input channel to try to make that clear.  The C code sets all axis parameters regardless whether they are used or not.  -1 is currently an invalid setting and not allowed from the Console or Configuration Screens.


    So, if I want to use the Encoder IO pin set JP5 pins 5&6 to connect an encoder's phase A and B, I would define a Config / Channel to have Axis Mode Input = Encoder and         Input Channel 0 = 6

    Is this correct?

Yes.  Maybe this diagram will help:

http://dynomotion.com/Help/SchematicsKFLOP/KFLOPFunctionalDiagram.htm


    I see that 8..15 are used for two SnapAmps (4 encoder ins on each). 
    Are Input Channel 0 = 8..15 used for anything when using only a KFlop board? 

Currently Input Channels 8..15 only relate to SnapAmp Encoder Inputs

Regards
TK
Group: DynoMotion Message: 7228 From: deanw1a Date: 4/10/2013
Subject: Re: KFlop only - Encoder Channel mapping
Thanks.

I wasn't paying attention to the Functional Diagram. Probably because I am using the PDF help file and searching for keywords. The diagram clearly shows Encoder Inputs 0 - 7 which I could have related to the Config / Input Channel 0 setting.


--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi deanw1a,
>
> Using the word Axis is confusing.  It has been changed.  See:
>
> http://dynomotion.com/Help/SchematicsKFLOP/ConnectorsKFLOP.htm
>
>
> Regarding the second input channel:  You are also correct that in Encoder mode the 2nd input is not used.  Most Users use the KMotion Screens to set configuration.  In that case we gray out the 2nd input channel to try to make that clear.  The C code sets all axis parameters regardless whether they are used or not.  -1 is currently an invalid setting and not allowed from the Console or Configuration Screens.
>
>
>     So, if I want to use the Encoder IO pin set JP5 pins 5&6 to connect an encoder's phase A and B, I would define a Config / Channel to have Axis Mode Input = Encoder and         Input Channel 0 = 6
>
>     Is this correct?
>
>
> Yes.  Maybe this diagram will help:
>
> http://dynomotion.com/Help/SchematicsKFLOP/KFLOPFunctionalDiagram.htm
>
>
>
>     I see that 8..15 are used for two SnapAmps (4 encoder ins on each). 
>     Are Input Channel 0 = 8..15 used for anything when using only a KFlop board? 
>
>
> Currently Input Channels 8..15 only relate to SnapAmp Encoder Inputs
>
> Regards
> TK
>
> ________________________________
> From: deanw1a <deanwyant@...>
> To: DynoMotion@yahoogroups.com
> Sent: Wednesday, April 10, 2013 1:29 PM
> Subject: [DynoMotion] KFlop only - Encoder Channel mapping
>
>
>  
> KFlop only - Encoder Channel mapping:
>
> Config / Axis Modes / input = Encoder:
>
> After much time in thought, I believe that the Input Channel 0 settings (InputChan0 in CHAN) settings 0..7 specify the set of KFlop input pins to use for Encoder Phase A & B inputs. These 8 sets of pins are documented as "Axis 0 Encoder…Axis 7 Encoder" in the KFlop Connectors help. However, it seems that you can assign them to any axis/axis channel you want by setting the axis channel's InputChan0. The descriptions might be clearer as "Encoder 0" or "Encoder Channel 0" instead of "Axis". This may seem trivial. But, it has cost me several hours of research.
> Am I wrong about this? If not, can a note be made for a future document revision so others can avoid this same confusion?
>
> The sample programs add to my confusion by setting InputChan1 for InputMode=Encoder even when only one input is used. Here I am… trying to figure out what the "Axis Modes"/"input" = Encoder, "Input Channels"/0 settings mean… and I see KFlop only samples setting ch0->InputChan0=0,ch0->InputChan1=1,ch1->InputChan0=1,ch1->InputChan1=2… I believe that these InputChan1=n settings are useless. I do not see any examples that set it to -1. I would think that would be the setting for unused int values.
>
> Is it OK to set unused int values to -1?
>
> Here is what I have concluded:
>
> KFlop without added cards:
> Config / Axis Modes / input dropdown (ch?->InputMode) = Encoder
>
> Input Channels / 0 (ch?->InputChan0) =
> 0 = IO0 & IO1 = JP7 7 & 8
> 1 = IO2 & IO3 = JP7 9 & 10
> 2 = IO4 & IO5 = JP7 11 & 12
> 3 = IO6 & IO7 = JP7 13 & 14
> 4 = IO36 & IO37 = JP5 1 & 2
> 5 = IO38 & IO39 = JP5 3 & 4
> 6 = IO40 & IO41 = JP5 5 & 6
> 7 = IO42 & IO43 = JP5 7 & 8
>
> So, if I want to use the Encoder IO pin set JP5 pins 5&6 to connect an encoder's phase A and B, I would define a Config / Channel to have Axis Mode Input = Encoder and Input Channel 0 = 6
>
> Is this correct?
>
> I see that 8..15 are used for two SnapAmps (4 encoder ins on each).
> Are Input Channel 0 = 8..15 used for anything when using only a KFlop board?
>
> Thanks.
>